import { type } from 'os';

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CreateDictDto {

    @ApiProperty({ description: '字典key' })
    @IsNotEmpty()
    dictKey: string;

    @ApiProperty({ description: '字典名称' })
    @IsNotEmpty()
    dictKeyName: string;

    @IsNotEmpty()
    @ApiProperty({ description:'字典类型' })
    dictType: string;

    @ApiProperty({ description: '字典描述' })
    description: string;

} 

export class CreateDictDataDto {


    @ApiProperty({ description: '字典key' })
    @IsNotEmpty()
    dictKey: string;

    @ApiProperty({ description: '字典项名称' })
    @IsNotEmpty()
    dictName: string;

    @ApiProperty({ description: '字典项值' })
    @IsNotEmpty()
    dictVal: string;
   
} 